<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title></title>
    <link href="${basePath}/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="${basePath}/css/scrollbar.css">
    <script src="${basePath}/js/jquery-1.10.2.js"></script>
  </head>
  <body name="session">
  	<div style="width: 85%;margin: 0px auto;">
	    <ul class="list-group" style="width: 100%;margin: 20px auto 20px auto;">
	    	<c:forEach items="${newmessageFriendList}" var="friend">
			  <li class="list-group-item list-group-item-warning" onclick="location.href='${basePath}/ssnchat/${friend.id}'" style="cursor: pointer;">
			  	<img src="${headimagePath}/${friend.headimage}" width="40" height="40" class="img-rounded">&nbsp;&nbsp;&nbsp;
			  	<span class="label label-warning">New</span>
			  	<span class="badge" style="max-width: 50%;text-overflow: ellipsis;overflow: hidden;">${friend.nickname}</span>
			  </li>
			 </c:forEach>
			 <c:forEach items="${sessionFriendList}" var="friend">
			 	<li class="list-group-item" onclick="location.href='${basePath}/ssnchat/${friend.id}'" style="cursor: pointer;">
				  	<img src="${headimagePath}/${friend.headimage}" width="40" height="40" class="img-rounded">&nbsp;&nbsp;&nbsp;
				  	<span class="badge" style="max-width: 50%;text-overflow: ellipsis;overflow: hidden;">${friend.nickname}</span>
				  </li>
			</c:forEach>
			</ul>
		</div>
    <script src="${basePath}/js/jquery.min.js"></script>
    <script src="${basePath}/js/bootstrap.min.js"></script>
  </body>
</html>